projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42450ca
)
Fix a arrow positioning
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 9 May 2011 01:16:05 +0000
(21:16 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 9 May 2011 01:28:36 +0000
(21:28 -0400)
This gets the misc-alignment test for arrows closer to
not failing.
gtk/gtkarrow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkarrow.c
b/gtk/gtkarrow.c
index 04e3b9915235d4d4a531af7f338bd961e21f8aa5..431fd9bc1181021ea3342d83849edc7fcc39e09a 100644
(file)
--- a/
gtk/gtkarrow.c
+++ b/
gtk/gtkarrow.c
@@
-345,8
+345,8
@@
gtk_arrow_draw (GtkWidget *widget,
effective_arrow_type = GTK_ARROW_LEFT;
}
- x = xpad + ((width - extent) * xalign);
- y = ypad + ((height - extent) * yalign);
+ x = xpad + ((width
- 2 * xpad
- extent) * xalign);
+ y = ypad + ((height -
2 * ypad -
extent) * yalign);
switch (effective_arrow_type)
{